﻿using System;
using System.Windows.Forms;

namespace Latin_Vocabulary_Indicator
{
    public partial class message : Form
    {
        private Action _backFunc;
        public message(string textContent,Action backFunc)
        {
            InitializeComponent();
            _backFunc = backFunc;
            title.Text = textContent;
        }

        private void cancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void message_FormClosing(object sender, FormClosingEventArgs e)
        {
            _backFunc.Invoke();
        }
    }
}
